import plotly
import plotly.graph_objs as go
import numpy as np

x_axis = np.linspace(0, 1, 50)
y0_axis = np.random.randn(50)+5
y1_axis = np.random.randn(50)
y2_axis = np.random.randn(50)-5

trace0 = go.Scatter(x=x_axis, y=y0_axis, mode='markers', name='markers')
trace1 = go.Scatter(x=x_axis, y=y1_axis, mode='lines+markers', name='line+markers')
trace2 = go.Scatter(x=x_axis, y=y2_axis, mode='lines', name='lines')

data_sets = [trace0, trace1, trace2]
plotly.offline.plot(data_sets, filename='line_scatter_plot.hmtl')
